package com.ticket.sass.common.file.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

@Setter
@Getter
@ConfigurationProperties(prefix="qiniu.default")
public class QiNiuConfig {

    private String accessKey;

    private String secretKey;

    private Map<String, String> buckets;

    private String host;
    
    private Region region; // 使用枚举类型
    
    public enum Region {
        HUADONG, // 华东
        HUABEI,  // 华北
        HUANAN,  // 华南
        BEIMEI   // 北美
    }
}
